package com.yc.biz;

import lombok.Data;

@Data
public class BizException extends Exception{

    private int code;
    private Object data;

    public BizException(String message, int code, Object data) {
        super(message);
        this.code = code;
        this.data = data;
    }

    public BizException(String message, int code) {
        super(message);
        this.code = code;
    }
}
